package com.school.common.utils;


import com.school.domain.vo.user.LoginVO;

public class UserHolder {
    private static final ThreadLocal<LoginVO> tl = new ThreadLocal<>();
    public static void saveUser(LoginVO loginVO) {
        tl.set(loginVO);
    }

    public static LoginVO getUser() {
        return tl.get();
    }

    public static void removeUser() {
        tl.remove();
    }


}
